<div id="main" class="container-fluid">
    <div class="row">
        <div class="col-xs-12 content">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>内容字数</th>
                    <th>价格</th>
                    <th>库存</th>
                    <th>发布类型</th>
                    <th>发布时间</th>
                    <th>用户</th>
                    <th>分类</th>
                    <th>标签</th>
                </tr>
                </thead>
                <tbody>
                <?php if (isset($CommodityArray)): ?>
                    <?php foreach ($CommodityArray as $thisCommodity): ?>
                        <?php /** @var Commodity $thisCommodity */ ?>
                        <tr>
                            <td><?php echo $thisCommodity->getId() ?></td>
                            <td><?php echo $thisCommodity->getTitle() ?></td>
                            <td><?php echo strlen($thisCommodity->getContent()) ?></td>
                            <td><?php echo $thisCommodity->getPrice() ?></td>
                            <td><?php echo $thisCommodity->getStock() ?></td>
                            <td><?php echo $thisCommodity->getReleaseType() ?></td>
                            <td><?php echo $thisCommodity->getReleaseTime() ?></td>
                            <td><?php echo $thisCommodity->getUserDisplayName() ?></td>
                            <td><?php echo $thisCommodity->getCommodityCatName() ?></td>
                            <td><?php echo $thisCommodity->getCommodityTagsIdJson() ?></td>
                        </tr>
                    <?php endforeach; ?>
                <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>